package com.crm.miaohe.common;

import java.util.regex.Pattern;

public class ApplicationConstant {
    public static final String CLIENT_ID = "MH-ERP";

    public static final String MYBATIS_METHOD_UPDATE = "update";
    public static final String MYBATIS_METHOD_INSERT = "insert";

    public static final String PLATFORM_CUSTOMER = "CUSTOMER";
    public static final String PLATFORM_MANAGEMENT = "MANAGEMENT";

    public static final Pattern VALIDATION_MESSAGE_PATTERN =
            Pattern.compile("(?<code>[\\da-z_\\-]+):(?<message>.+)", Pattern.CASE_INSENSITIVE);

    // Error Code (Authentication)
    public static final String INVALID_USERNAME_PWD = "AUTH001";
    public static final String LOGIN_LOCKED = "AUTH002";
    public static final String ACCOUNT_LOCKED = "AUTH003";
    public static final String ACCOUNT_ROLE_ABSENCE = "AUTH004";
    public static final String ROLE_NOT_SUPPORTED = "AUTH005";
    public static final String NOT_SIGN_UP = "AUTH006";
    public static final String WAITING_APPROVE = "AUTH007";
    public static final String USERNAME_NOT_FOUND = "AUTH008";
    public static final String AUTH_009 = "AUTH009";
    // Common Error
    public static final String COMMON_SERVER_ERR = "CM000";
    public static final String PLATFORM_NOT_SUPPORTED = "CM004";
    public static final String ILLEGAL_PARAMETER = "CM005";
    public static final String DATA_NOT_FOUND = "CM006";
    public static final String REQUEST_PARAM_INVALID = "CM007";
    public static final String ORDER_INVALID = "CM008";
    public static final String ORDER_DELETE_INVALID = "CM009";

    public static final String CUS001 = "CUS001";
    public static final String CUS002 = "CUS002";
    public static final String CUS003 = "CUS003";
    public static final String CUS004 = "CUS004";

    public static final String STRATEGY_NOT_EXISTS = "ST001";
    public static final String STRATEGY_IS_LOCKED = "ST002";

    public static final String JSON_CONVERT_EX = "JSON001";

    public static final String KINGDEE_001 = "KINGDEE001";
    public static final String KINGDEE_002 = "KINGDEE002";
    public static final String KINGDEE_003 = "KINGDEE003";
    public static final String KINGDEE_004 = "KINGDEE004";
    public static final String KINGDEE_005 = "KINGDEE005";
    public static final String KINGDEE_006 = "KINGDEE006";
    public static final String KINGDEE_999 = "KINGDEE999";

    public static final String STANDARD_ORDER_CODE = "XSDD01_SYS";
    public static final String DEFAULT_UNIT_ID = "Pcs";
    public static final String DEFAULT_RESERVE_TYPE = "1";

    public static final String OD001 = "OD001";

    //系统参数，是否开启接单
    public static final String CONFIG_KEY_RECEIVE_ORDER = "RECEIVE_ORDER";

    //包裹导出
    public static final String REPORT_EXPORT_TYPE_PACKAGE = "package";

    //馄饨分类
    public static final String PACKAGE_CATEGORY_CODE = "103644";

    //套餐
    public static final String SUIT_CATEGORY_CODE = "134024";

}
